/**
 * 定义关于用户数据库表的接受层
 * @name: user.vo
 * @data: 2024/4/8 10:06
 *
 */
import {z} from "zod";

/** 添加用户时的接收层 */
export const UserInsertVO = z.object({
  username:z.string(),
  nickname:z.unknown(),
  password:z.string(),
  avatar:z.unknown(),
  motto:z.unknown(),
  createTime:z.unknown()
});

/** 更新用户时的接受层 */
export const UserUpdateVO = z.object({
  userId:z.number(),
  nickname:z.unknown(),
  password:z.unknown(),
  avatar:z.unknown(),
  motto:z.unknown(),
  createTime:z.unknown()
});

/** 查询用户时的接受层 */
export const UserSelectVO=z.object({
  userId:z.unknown(),
  nickname:z.unknown(),
  username:z.unknown(),
});

export const UserLoginVo = z.object({
  username:z.string(),
  password:z.string(),
})
